import 'package:flutter/material.dart';

class PrimaryCheckBox extends StatelessWidget {
  final bool value;
  final ValueChanged<bool?>? onChanged;
  final double size;
  final double borderRadius;

  const PrimaryCheckBox({
    super.key,
    required this.value,
    required this.onChanged,
    this.size = 28,
    this.borderRadius = 4,
  });

  @override
  Widget build(BuildContext context) {
    return SizedBox(
      width: size,
      height: size,
      child: Checkbox(
        value: value,
        onChanged: onChanged,
        shape: RoundedRectangleBorder(
          borderRadius: BorderRadius.circular(borderRadius),
        ),
      ),
    );
  }
}